body {
    background: #f5f5f5;
    font-family: Arial, sans-serif;
    overflow-y: hidden;
    margin: 0;
    /* 去除默认外边距 */
    padding: 0;
}

.video-box {
    position: relative;
    height: 100vh;
    background-color: #C1CFF7;
    /*进行视频裁剪*/
    overflow: hidden;
}

.video-box .video-background {
    position: absolute;
    left: 50%;
    top: 50%;
    /*保证视频内容始终居中*/
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    /*保证视频充满屏幕*/
    object-fit: cover;
    border-radius: 8px;
}

.login-container {
    position: absolute;
    width: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    padding: 32px 24px;
    background: rgb(255, 233, 237, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* 移除默认动画绑定 */
    /* animation: slideUp 1.8s ease; */
    opacity: 0; /* 初始隐藏 */
}

/* 新增动画触发类 */
.login-container.animate {
    animation: slideUp 1.8s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 180%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -60%);
    }
}

.login-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-container .reg_log {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;  
    gap: 20px;
}

.login-container .reg_log button {
    width: 13vh;
    padding: 10px;
    transform: skewX(-10deg);
    color: #30312e;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    margin-top: 2vh;
    font-weight: bold;
}

.login-container button:hover {
    background: #1565c0;
}

.touch_to_start {
    position: absolute;
    top: 92%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3vh;
    width: 30vw;
    height: 4vh;
    text-align: center;
    line-height: 4vh;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0),
            /* 左侧透明 */
            rgba(255, 255, 255, 0.7),
            /* 中间半透明 */
            rgba(255, 255, 255, 0.7),
            /* 中间半透明 */
            rgba(255, 255, 255, 0.7),
            /* 中间半透明 */
            rgba(255, 255, 255, 0)
            /* 右侧透明 */
        );
    color: #419df8;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 540;

    user-select: none;
}

.head_img {
    position: absolute;
    top: 0%;
    left: 0%;
    z-index: 999;
}

.head_img img {
    width: 20vw;
}
